/*
 * @Author: LVGRAPE
 * @LastEditors: LVGRAPE
 */

#ifndef __DRV_SPIM_H__
#define __DRV_SPIM_H__

#include "drv_pin.h"

#define SPIM_SECTOR_SIZE    4096
#define SPIM_TEST_ADDR      0x08400000
void spim_init(void);
void sector_read(uint32_t address, uint32_t sector_size, uint8_t *buf);
int spim_operate(int argc, char **argv);
void c(void);
#endif /* __DRV_SPIM_H__ */
